package com.hsp_java.set_;

@SuppressWarnings({"all"})
public class HashSetStruct {
    public static void main(String[] args) {
        Node[] table = new Node[16];
        Node jack = new Node("jack");
        table[0] = jack;
        Node tom = new Node("Tom");
        Node john = new Node("John");
        jack.nxt = tom;
        tom.nxt = john;
        System.out.println(table);
    }
}


class Node {
    Object item;
    Node nxt;

    public Node(Object item) {
        this.item = item;
    }
}
